<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/6
 * Time: 9:50
 */

session_start();

// 告诉浏览器 ,以什么方式来解析我给你返回的内容
header("content-Type:text/html;charset=utf-8");

if(isset($_SESSION["uid"])){
	print_r(json_encode(array("status"=>1,"msg"=>"已登录")));
}else{
	print_r(json_encode(array("status"=>0,"msg"=>"未登录")));
}